package cn.sumpu.app.guoguojie.biz;

import java.util.List;
import java.util.Map;
import cn.sumpu.app.guoguojie.domain.Doing;
import cn.sumpu.app.guoguojie.domain.Mention;
import cn.sumpu.app.guoguojie.util.PageModel;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface MentionBiz {

	//添加一条提到我的记录
	void addMention(Mention mention)throws AppBusinessException;
	//查询有多少条提到我家的新记录
	Integer getMentionCount(String doorplate)throws AppBusinessException;
	//更改家里的提到我家的信息为已读
	void clearMentionByDoorplate(String doorplate)throws AppBusinessException;
	//根据门牌号取得提到我家的信息
	List<Mention> getMentionByDoorplate(Map<String,Object> map)throws AppBusinessException;
	
	//根据门牌号取得提到我家的信息(分页方法)
	PageModel getMentionByDoorplate(String doorplate, Integer page)throws AppBusinessException;
	
	//根据会员ID取得家的门牌号
	String getDoorplateByMember (String member)throws AppBusinessException;
	
	//根据群组里面的话题ID取得家的门牌号
	String getDoorplateByTopicId(String topicId)throws AppBusinessException;
	
	//通过doingID查询这条微博
	Doing getDoingById(String doingId)throws AppBusinessException;
	//根据群标题的回复ID删除提到我家的
	void deleteMentionById(String topicReplyId)throws AppBusinessException;
	//根据群标题的ID删除提到我家的
	void deleteMentionByCrowdTopicId(String replyId)throws AppBusinessException;
	//根据条件批量删除提到我家的
	void deleteMentionByCondition(String id, String type)throws AppBusinessException;
	//根据条件批量屏蔽提到我家的
	void updateMentionByCondition(Boolean enabled, String idList, String type)throws AppBusinessException;
	
}
